package design.patterns.structural.composite;

/**
 * @author gjx
 * @version v1.0
 * @Description
 * @date 2019/4/4 17:30
 */
public class Client {
    public static void main(String[] args) {
        TreeNode root = new TreeNode("根节点");
        TreeNode leftNode = new TreeNode("左节点");
        TreeNode rightNode = new TreeNode("右节点");

        root.addChildNode(leftNode);
        root.addChildNode(rightNode);



        System.out.println(root);
    }
}
